package com.ljq;

public class Ui {
    public static void printWelcome (Person person) {
        System.out.println();
        System.out.println("欢迎来到城堡！");
        System.out.println("这是一个好玩的打怪游戏。");
        System.out.println("如果需要帮助，请输入 'help' 。");
        System.out.println("请输入人物选择：1.小白  2.小明  3.冉冉");
    }
    public static void displayReachableRooms (Person person) {
        System.out.println("现在你在" + person.getCurrentRoom().getId() +"("+ person.getCurrentRoom().toString()+")");
        System.out.println("食人鱼在游泳池，牛魔王在书房");
        System.out.print("出口有：");
        for (String key : person.getCurrentRoom().getReachableRooms().keySet()
        ) {
            System.out.print(key + "(" + person.getCurrentRoom().getReachableRooms().get(key).getDescription() + ")" + " ");
        }
        System.out.println();
    }
    public static void printHelp () {
        System.out.println("迷路了吗？你可以做的命令有：go bye help attack");
        System.out.println("如：\tgo 1");
        System.out.println("如：\tattack monster");
    }

    public static void printNoRoom () {
        System.out.println("那里没有房间！");
    }

    public static void printMonster() {System.out.println("YOU kill it");}
    public static void printWin(){
        System.out.println("You Won the Game!!!");
        System.out.println("please print bye to leave");}
    public static void printErrorCommand () {
        System.out.println("输入错误命令，重新输入。");
    }
}
